import request from "@/utils/request";

// 查询工序报验列表
export function listBsProcessInspection(query) {
  return request({
    url: "/cm/bsProcessInspection/list",
    method: "get",
    params: query
  });
}
// 查询工序报验树-分部分项-工序列表
export function fbxGxTree(query) {
  return request({
    url: "/cm/bsProcessInspection/fbfxGxTree",
    method: "get",
    params: query
  });
}
// 查询工序报验附件列表
export function getGxbyFiles(query) {
  return request({
    url: "/cm/bsProcessInspection/getGxbyFiles",
    method: "get",
    params: query
  });
}
// 查询工序报验详细
export function getBsProcessInspection(id) {
  return request({
    url: "/cm/bsProcessInspection/" + id,
    method: "get"
  });
}
// 查询工序报验审批前校验
export function checkProcessInspection(id) {
  return request({
    url: "/cm/bsProcessInspection/check/" + id,
    method: "get"
  });
}
// 新增工序报验
export function addBatchBsProcessInspection(data) {
  return request({
    url: "/cm/bsProcessInspection/addBatch",
    method: "post",
    data: data
  });
}

// 新增工序报验
export function addBsProcessInspection(data) {
  return request({
    url: "/cm/bsProcessInspection",
    method: "post",
    data: data
  });
}

// 修改工序报验
export function updateBsProcessInspection(data) {
  return request({
    url: "/cm/bsProcessInspection",
    method: "put",
    data: data
  });
}

// 删除工序报验
export function delBsProcessInspection(id) {
  return request({
    url: "/cm/bsProcessInspection/" + id,
    method: "delete"
  });
}
// 查询工序报验查询列表分页
export function listQueryBsProcessInspection(query) {
  return request({
    url: "/cm/bsProcessInspection/listQuery",
    method: "get",
    params: query
  });
}
